<?php
	header("Content-Type: text/html;charset=utf-8");
	include("../_judge.php");
	include("../../function/function.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?= $adminweb_titles ?></title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<script>if (top.location != parent.location||self.location==top.location){top.location.replace('../login/admin.php')}</script>
<script language="javascript" src="../script/jquery-1.7.2.min.js"></script>
<link rel="stylesheet" href="../../SunbeamEditor/themes/default/default.css" />
<link rel="stylesheet" href="../../SunbeamEditor/plugins/code/prettify.css" />
<script charset="utf-8" src="../../SunbeamEditor/kindeditor.js"></script>
<script charset="utf-8" src="../../SunbeamEditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="../../SunbeamEditor/plugins/code/prettify.js"></script>
<script language="javascript">
	KindEditor.ready(function(K) {
		var editor = K.create('textarea[name="index_copy"]', {
			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',
			uploadJson : '../../SunbeamEditor/php/upload_json.php',
			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',
			allowFileManager : false,
			afterBlur: function(){this.sync();}
		});
//		var editor1 = K.create('textarea[name="index_mk1"]', {
//			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',
//			uploadJson : '../../SunbeamEditor/php/upload_json.php',
//			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',
//			allowFileManager : false,
//			afterBlur: function(){this.sync();}
//		});
		var editor2 = K.create('textarea[name="index_mk2"]', {
			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',
			uploadJson : '../../SunbeamEditor/php/upload_json.php',
			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',
			allowFileManager : false,
			afterBlur: function(){this.sync();}
		});
//		var editor3 = K.create('textarea[name="index_mk3"]', {
//			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',
//			uploadJson : '../../SunbeamEditor/php/upload_json.php',
//			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',
//			allowFileManager : false,
//			afterBlur: function(){this.sync();}
//		});
		var editor4 = K.create('textarea[name="index_mk4"]', {
			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',
			uploadJson : '../../SunbeamEditor/php/upload_json.php',
			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',
			allowFileManager : false,
			afterBlur: function(){this.sync();}
		});
		
		/////   点击上传图片
		var editor = K.editor({
			allowFileManager : false
		});
		K('#image1').click(function() {
			editor.loadPlugin('image', function() {
				editor.plugin.imageDialog({
					imageUrl : K('#index_mk1').val(),
					clickFn : function(url, title, width, height, border, align) {
						K('#index_mk1').val(url);
						editor.hideDialog();
					}
				});
			});
		});
		
});
</script>
</head>

<body>

<table width="97%" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td><strong>后台管理</strong>&nbsp;-&nbsp;<span class="hong"><strong>首页基本信息管理</strong></span></td>
  </tr>
</table>
<form id="myform" name="myform" method="post" action="webinfoaddsave.php?action=save">
<input type="hidden" value="<?=$webinfo_id?>" name="webinfo_id" id="webinfo_id" />
  <table width="97%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#000000">
    <tr>
      <td colspan="2" align="center" bgcolor="#336699" class="bai12"><strong>首页基本信息管理</strong><strong></strong></td>
    </tr>
    <tr>
      <td width="150" align="center" bgcolor="#EFEFEF">网站标题：</td>
      <td bgcolor="#EFEFEF"><input name="web_titles" type="text" id="web_titles" value="<?=$web_titles?>" size="70" /></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">网站关键词：</td>
      <td bgcolor="#EFEFEF"><input name="web_keywords" type="text" id="web_keywords" value="<?=$web_keywords?>" size="70" /></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">网站描述：</td>
      <td bgcolor="#EFEFEF"><textarea name="web_description" cols="75" rows="3" id="web_description"><?=$web_description?></textarea></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">登录图片上传：</td>
      <td bgcolor="#EFEFEF"><input name="index_mk1" type="text" id="index_mk1" value="<?=$index_mk1?>" size="25" />
        <input name="button" type="button" id="image1" value="选择图片" /></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">400电话：</td>
      <td bgcolor="#EFEFEF"><input name="index_mk3" type="text" id="index_mk3" value="<?=$index_mk3?>" size="35" /></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">版权信息：</td>
      <td bgcolor="#EFEFEF"><textarea name="index_copy" style="width:680px;height:350px;visibility:hidden;"><?=htmlspecialchars($index_copy)?></textarea></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">企业会员报名：</td>
      <td bgcolor="#EFEFEF"><textarea name="index_mk2" style="width:680px;height:350px;visibility:hidden;"><?=htmlspecialchars($index_mk2)?></textarea></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EFEFEF">&nbsp;</td>
      <td bgcolor="#EFEFEF"><input type="submit" name="Submit" value=" 确 认 提 交 修 改 " /></td>
    </tr>
  </table>
</form>
</body>
</html>